<?php

class Application_Form_Auth extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
      $this->setName('auth_form');

      $login = new Zend_Form_Element_Text('email');
      $login->setLabel('Email:')
        ->addValidator('EmailAddress')
        ->addFilter('StringTrim')
        ->addValidator('NotEmpty')
        ->setRequired(true);
      $this->addElement($login);

      $password = new Zend_Form_Element_Password('password');
      $password->setLabel('Пароль:')
        ->setRequired(true)
        ->addValidator('NotEmpty');

      $this->addElement($password);

      $this->addElement('Hidden', 'return_url', array());

      $submit = new Zend_Form_Element_Submit('submit');
      $submit->setLabel('Вход');
      $this->addElement($submit);



    }


}

